from flask import  session

from flask_migrate import Migrate,MigrateCommand
# 导入扩展Flask_script
from flask_script import Manager
# 导入app
from info import create_app,db,models

app = create_app('development')


# 实例化管理器对象
manage = Manager(app)
# 使用迁移框架
Migrate(app,db)
# 通过管理器对象，添加迁移命令
manage.add_command('db',MigrateCommand)



if __name__ == '__main__':
    manage.run()